package com.smart.model.dtomapper;

import com.smart.model.domain.ProjectReportDO;
import com.smart.model.request.ProjectReportRequest;
import com.smart.model.vo.ProjectReportVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface ProjectReportDtoMapper {

    ProjectReportDtoMapper INSTANCE = Mappers.getMapper(ProjectReportDtoMapper.class);

    /**
    * DO to VO
    * @param projectReportDO
    * @return
    */
    ProjectReportVO do2VO(ProjectReportDO projectReportDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    ProjectReportDO request2DO(ProjectReportRequest request);
}
